<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑图书 - 图书管理系统</title>
    <link rel="stylesheet" href="/librarymanagementsystem/css/main.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>图书管理系统</h1>
            <nav>
                <ul>
                    <li><a href="/librarymanagementsystem/index.html">首页</a></li>
                    <li><a href="/librarymanagementsystem/book_page.html" class="active">图书管理</a></li>
                    <li><a href="/librarymanagementsystem/borrow_page.html">借阅管理</a></li>
                </ul>
            </nav>
        </header>
        
        <main>
            <h2>编辑图书</h2>
            
            <form id="book-form">
                <input type="hidden" id="id" name="id">
                
                <div class="form-group">
                    <label for="isbn">ISBN</label>
                    <input type="text" id="isbn" name="isbn" required>
                </div>
                
                <div class="form-group">
                    <label for="title">书名</label>
                    <input type="text" id="title" name="title" required>
                </div>
                
                <div class="form-group">
                    <label for="author">作者</label>
                    <input type="text" id="author" name="author" required>
                </div>
                
                <div class="form-group">
                    <label for="publisher">出版社</label>
                    <input type="text" id="publisher" name="publisher">
                </div>
                
                <div class="form-group">
                    <label for="publish_date">出版日期</label>
                    <input type="date" id="publish_date" name="publish_date">
                </div>
                
                <div class="form-group">
                    <label for="price">价格</label>
                    <input type="number" id="price" name="price" min="0" step="0.01">
                </div>
                
                <div class="form-group">
                    <label for="category">分类</label>
                    <select id="category" name="category">
                        <option value="计算机">计算机</option>
                        <option value="文学">文学</option>
                        <option value="历史">历史</option>
                        <option value="科技">科技</option>
                        <option value="教育">教育</option>
                        <option value="其他">其他</option>
                    </select>
                </div>
                
                <div class="form-group">
                    <label for="status">状态</label>
                    <select id="status" name="status">
                        <option value="在库">在库</option>
                        <option value="借出">借出</option>
                        <option value="损坏">损坏</option>
                    </select>
                </div>
                
                <div class="form-actions">
                    <button type="submit" class="btn">保存</button>
                    <a href="/librarymanagementsystem/book_page.html" class="btn">取消</a>
                </div>
            </form>
        </main>
        
        <footer>
            <p>&copy; 2025 图书管理系统</p>
        </footer>
    </div>
    
    <script src="/librarymanagementsystem/js/jquery-3.2.1.js"></script>
    <script src="/librarymanagementsystem/js/book.js"></script>
</body>
</html> 